package com.ln.point.entity;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.ln.adoms.entity.Department;
import com.ln.core.orm.hibernate.BaseEntity;

@Entity
@Table(name = "t_record")
public class PointRecord extends BaseEntity {

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "member_id")
	private PointMember member;

	private Double balance;

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "rule_id")
	private PointRule rule;

	private Date recordTime;

	private PointType type;

	private Double point;

	private String iCode;

    private String name;

    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "depart_id")
    private Department idepart;

	private String oper;


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Double getPoint() {
		return point;
	}

	public void setPoint(Double point) {
		this.point = point;
	}

	public PointType getType() {
		return type;
	}

	public void setType(PointType type) {
		this.type = type;
	}

	public PointMember getMember() {
		return member;
	}

	public void setMember(PointMember member) {
		this.member = member;
	}

	public Double getBalance() {
		return balance;
	}

	public void setBalance(Double balance) {
		this.balance = balance;
	}

	public PointRule getRule() {
		return rule;
	}

	public void setRule(PointRule rule) {
		this.rule = rule;
	}

	public Date getRecordTime() {
		return recordTime;
	}

	public void setRecordTime(Date recordTime) {
		this.recordTime = recordTime;
	}

	public String getiCode() {
		return iCode;
	}

	public void setiCode(String iCode) {
		this.iCode = iCode;
	}

	public String getOper() {
		return oper;
	}

	public void setOper(String oper) {
		this.oper = oper;
	}

    public Department getIdepart() {
        return idepart;
    }

    public void setIdepart(Department idepart) {
        this.idepart = idepart;
    }
}
